<div class="more">
  <%= link_to "查看更多",
      document_url(:id => :logs, :cmd => :logs_index),
      :target => :_blank
  %>
</div>
<% Article.up_to_date_articles(:last => 5).each do |article| %>
  <div class="monomer">
    <div id="picture"><%= valleyer_logo_image_tag article.author, {:width => 60, :height => 60} %></div>
    <div class="content">
      <div class="minute">
        <div class="topic">
          <div class="auther">
            <%= link_to truncate(article.author.nick_name, :length => 5),
              valleyer_url(article.author),
              :target => :_blank,
              :class => "client_name",
              :title => article.author.nick_name
          %>
          </div>
          <p>发表日志</p>
          <%= link_to truncate(article.title, :length => 10),
            show_log_url(article),
            :title => article.title,
            :target => :_blanck
        %>
          <div class="time"><%= article.created_at.strftime("%Y-%m-%d %H:%M") %></div>
        </div>
        <div class="summarize">
          <%= truncate("#{strip_tags(article.content)}", :length => 300) %>
        </div>
      </div>
      <div class="parameter">
        <div class="read">
          阅读：(<%= article.browse_records_count %>)&nbsp;&nbsp;
          评论：(<%= article.post_sessions.length %>)
        </div>
      </div>
    </div>
  </div>
<% end %>